package com.ruoyi.xiaoshouchuku.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.xiaoshouchuku.mapper.XiaoshouChukuMapper;
import com.ruoyi.xiaoshouchuku.domain.XiaoshouChuku;
import com.ruoyi.xiaoshouchuku.service.IXiaoshouChukuService;

/**
 * 销售出库Service业务层处理
 *
 * @author ruoyi
 * @date 2023-05-23
 */
@Service
public class XiaoshouChukuServiceImpl implements IXiaoshouChukuService
{
    @Autowired
    private XiaoshouChukuMapper xiaoshouChukuMapper;

    /**
     * 查询销售出库
     *
     * @param id 销售出库主键
     * @return 销售出库
     */
    @Override
    public XiaoshouChuku selectXiaoshouChukuById(Long id)
    {
        return xiaoshouChukuMapper.selectXiaoshouChukuById(id);
    }

    /**
     * 查询销售出库列表
     *
     * @param xiaoshouChuku 销售出库
     * @return 销售出库
     */
    @Override
    public List<XiaoshouChuku> selectXiaoshouChukuList(XiaoshouChuku xiaoshouChuku)
    {
        return xiaoshouChukuMapper.selectXiaoshouChukuList(xiaoshouChuku);
    }

    /**
     * 新增销售出库
     *
     * @param xiaoshouChuku 销售出库
     * @return 结果
     */
    @Override
    public int insertXiaoshouChuku(XiaoshouChuku xiaoshouChuku)
    {
        return xiaoshouChukuMapper.insertXiaoshouChuku(xiaoshouChuku);
    }

    /**
     * 修改销售出库
     *
     * @param xiaoshouChuku 销售出库
     * @return 结果
     */
    @Override
    public int updateXiaoshouChuku(XiaoshouChuku xiaoshouChuku)
    {
        return xiaoshouChukuMapper.updateXiaoshouChuku(xiaoshouChuku);
    }

    /**
     * 批量删除销售出库
     *
     * @param ids 需要删除的销售出库主键
     * @return 结果
     */
    @Override
    public int deleteXiaoshouChukuByIds(Long[] ids)
    {
        return xiaoshouChukuMapper.deleteXiaoshouChukuByIds(ids);
    }

    /**
     * 删除销售出库信息
     *
     * @param id 销售出库主键
     * @return 结果
     */
    @Override
    public int deleteXiaoshouChukuById(Long id)
    {
        return xiaoshouChukuMapper.deleteXiaoshouChukuById(id);
    }
}
